﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="Content.aspx.cs" Inherits="ITOMMS.Web.Main.Content" %>

<!DOCTYPE html PUBliC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" id='Link1' type="text/css" href="../css/jquery.Validator.Tooltip.css" />
    <style type="text/css">
ul,li{margin:0;padding:0}
.scrollDiv{ padding-top:10px; width:300px; height: 290px;background: url(../images/notice_bg4.PNG) no-repeat;min-height:25px;line-height:25px;overflow:hidden}
.scrollDiv li{height:25px;padding-left:10px;}
.scrollDiv2{ padding-top:10px; width:300px; height: 290px;background: url(../images/notice_bg3.PNG) no-repeat;min-height:25px;line-height:25px;overflow:hidden}
.scrollDiv2 li{height:25px;padding-left:10px;}
</style>
   <link href="../css/AspNetPager.css" rel="stylesheet" type="text/css" />
   
    <script src="../js/jquery.pack.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/ymPrompt.js"></script>
    <script type="text/javascript" src="../reportcenter/reportcenter.js" charset="gb2312"></script>

    <script language="javascript" type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>



</head>
<body>
    <form id="form1" runat="server">
        <div id="content1" style="background: url(../images/345.PNG); height: 428px;">
            <div style="margin: 0 0; text-align: left; width: 100%; vertical-align: top;">
                <table id="tb_notice" style="width: 892px" runat="server" visible="false">
                    <tr>
                        <td style="width: 235px; ">
                                        <div class="scrollDiv">
                                            <img src="../images/speaker1.gif" style="margin-left: 10px; margin-bottom: 15px;" alt="" />
                                            <ul style="list-style-type: none; text-align: left;">
                                                <asp:DataList ID="dListNotice" runat="server">
                                                    <HeaderTemplate>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <li><a href="../Notice/NoticeView.aspx?ID=<%#Eval("ID")%>">
                                                            <%# Watson.Core.Tools.FormatValue.InterceptString(Eval("title").ToString(), 14)%>
                                                        </a>(<%#Eval("CreateDate", "{0:yyyy-MM-dd}")%>)</li>
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                    </FooterTemplate>
                                                </asp:DataList></ul>
                                            <div style="float: right; padding-right: 15px;">
                                                <a href="../Notice/NoticeList.aspx">查看更多</a></div>
                                        </div>
                        </td>
                        <td id="tr_trouble" valign="top" style="height: 344px" runat="server" visible="false">
                            <div id="Div1">
                                <table>
                                    <tr style="height: 40px">
                                        <td>
                                            <img src="../images/qzone.gif" alt="." />&nbsp;<asp:Label ID="lblRealName" runat="server"
                                                Font-Bold="true" Text=""></asp:Label>
                                            您好：</td>
                                    </tr>
                                    <tr style="height: 20px">
                                        <td>
                                            <img src="../images/prev.png" alt="." style="margin-bottom: -3px;" />您有<asp:Label
                                                ID="lblTroubleCount" runat="server" Font-Bold="true" Text=""></asp:Label>个新的故障单，<a
                                                    href="../TroubleManage/TroubleList.aspx">点击查看</a>。</td>
                                    </tr>
                                    <tr style="height: 20px">
                                        <td>
                                            <img src="../images/prev.png" alt="." style="margin-bottom: -3px;" />您有<asp:Label
                                                ID="lblDispatch" runat="server" Font-Bold="true" Text=""></asp:Label>个新的派单，<a href="../Dispatch/DispatchList.aspx">点击查看</a>。</td>
                                    </tr>
                                    <tr style="height: 20px">
                                        <td>
                                            <img src="../images/prev.png" alt="." style="margin-bottom: -3px;" />您有<asp:Label
                                                ID="lblBackLog" runat="server" Font-Bold="true" Text=""></asp:Label>个新的待办事项，<a href="../InsideManage/BackLog.aspx">点击查看</a>。</td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                        <td id="tdInwardNotice" runat="server" style="height: 344px" valign="top" visible="false">
                          
                                    <td style="width: 235px;">
                                        <div class="scrollDiv2">
                                            <img src="../images/speaker1.gif" style="margin-left: 10px; margin-bottom: 15px;" alt=""/>
                                            <ul style="list-style-type: none; text-align: left;">
                                                <asp:DataList ID="dListInwardNotice" runat="server">
                                                    <HeaderTemplate>
                                                    </HeaderTemplate>
                                                    <ItemTemplate>
                                                        <li><a href="../Notice/NoticeView.aspx?ID=<%#Eval("ID")%>">
                                                            <%# Watson.Core.Tools.FormatValue.InterceptString(Eval("title").ToString(), 14)%>
                                                        </a>(<%#Eval("CreateDate", "{0:yyyy-MM-dd}")%>)</li>
                                                    </ItemTemplate>
                                                    <FooterTemplate>
                                                    </FooterTemplate>
                                                </asp:DataList></ul>
                                            <div style="float: right; padding-right: 15px;">
                                                <a href="../Notice/NoticeList.aspx">查看更多</a></div>
                                        </div>
                                    </td>
                        </td>
                    </tr>
                </table>
                <table id="tb_technology" class="tblDataArea" width="100%" runat="server">
                    <tr class="tblQueryArea">
                        <td class="tblDataCaption">
                            <img src="../images/lv3.gif" /><strong>处理任务：</strong></td>
                        <td class="tblDataCaption">
                            <img src="../images/lv3.gif" /><strong>待办事项：</strong></td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            <asp:GridView ID="gridView_Dispatch" runat="server" AllowPaging="False" AllowSorting="True"
                                AutoGenerateColumns="False" CssClass="cssDataGrid" HorizontalAlign="Center" OnRowDataBound="gridView_Dispatch_RowDataBound"
                                PageSize="6" Width="98%">
                                <FooterStyle CssClass="cssDataGridFooter" />
                                <SelectedRowStyle CssClass="cssDataGridSelectedItem" />
                                <EditRowStyle CssClass="cssDataGridEditItem" />
                                <AlternatingRowStyle CssClass="cssDataGridAlternatingItem" />
                                <RowStyle CssClass="cssDataGridItem" />
                                <HeaderStyle CssClass="cssDataGridHeader" ForeColor="#CCFFFF" />
                                <Columns>
                                    <asp:BoundField DataField="SEQNO" HeaderText="序号" />
                                    <asp:BoundField DataField="DispatchNO" HeaderText="工单号" />
                                    <asp:BoundField DataField="CompanyName" HeaderText="所属公司" />
                                    <asp:BoundField DataField="ServiceName" HeaderText="服务分类" />
                                    <asp:BoundField DataField="NextDepartmentName" HeaderText="处理组" />
                                    <asp:BoundField DataField="NextPersonName" HeaderText="处理人" />
                                    <asp:BoundField DataField="State" HeaderText="处理状态" />
                                    <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="../Dispatch/DispatchShow.aspx?id={0}"
                                        HeaderText="查看" Text="查看" />
                                    <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="../Dispatch/DispatchAdd.aspx?id={0}"
                                        HeaderText="编辑" Text="编辑" />
                                </Columns>
                            </asp:GridView>
                            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb"
                                FirstPageText="首页" LastPageText="尾页" NextPageText="后页" OnPageChanged="AspNetPager1_PageChanged" PageSize="6"
                                PrevPageText="前页">
                            </webdiyer:AspNetPager>
                        </td>
                        <td class="tdQueryCaption">
                            <asp:GridView ID="gridView_BackLog" runat="server" AllowPaging="False" AllowSorting="True"
                                AutoGenerateColumns="False" CssClass="cssDataGrid" HorizontalAlign="Center" PageSize="6"
                                Width="98%">
                                <FooterStyle CssClass="cssDataGridFooter" />
                                <SelectedRowStyle CssClass="cssDataGridSelectedItem" />
                                <EditRowStyle CssClass="cssDataGridEditItem" />
                                <AlternatingRowStyle CssClass="cssDataGridAlternatingItem" />
                                <RowStyle CssClass="cssDataGridItem" />
                                <HeaderStyle CssClass="cssDataGridHeader" ForeColor="#CCFFFF" />
                                <Columns>
                                    <asp:BoundField DataField="SEQNO" HeaderText="序号" />
                                    <asp:TemplateField HeaderText="事项标题">
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server"><%# Watson.Core.Tools.FormatValue.InterceptString(Eval("Title").ToString(), 15)%></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="事项内容">
                                        <ItemTemplate>
                                            <asp:Label ID="Label2" runat="server"><%# Watson.Core.Tools.FormatValue.InterceptString(Eval("Content").ToString(), 25)%></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="DoDate" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HeaderText="待办时间" />
                                    <asp:TemplateField HeaderText="事项状态">
                                        <ItemTemplate>
                                            <asp:Label ID="Label3" runat="server"><%# GetStatus(Eval("State").ToString())%></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:HyperLinkField DataNavigateUrlFields="Id" DataNavigateUrlFormatString="../InsideManage/BacklogAdd.aspx?id={0}"
                                        HeaderText="编辑" Text="编辑" />
                                </Columns>
                            </asp:GridView>
                            <webdiyer:AspNetPager ID="AspNetPager2" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb"
                                FirstPageText="首页" LastPageText="尾页" NextPageText="后页" PageSize="6" OnPageChanged="AspNetPager2_PageChanged"
                                PrevPageText="前页">
                            </webdiyer:AspNetPager>
                        </td>
                    </tr>
                    <tr class="tblQueryArea">
                        <td class="tblDataCaption" colspan="2">
                            <img src="../images/lv3.gif" /><strong>故障单：</strong></td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption" colspan="2">
                            <asp:GridView ID="gridView_Trouble" runat="server" AllowPaging="False" AllowSorting="True"
                                AutoGenerateColumns="False" CssClass="cssDataGrid" HorizontalAlign="Center" OnRowDataBound="gridView_Trouble_RowDataBound"
                                PageSize="6" Width="98%">
                                <FooterStyle CssClass="cssDataGridFooter" />
                                <SelectedRowStyle CssClass="cssDataGridSelectedItem" />
                                <EditRowStyle CssClass="cssDataGridEditItem" />
                                <AlternatingRowStyle CssClass="cssDataGridAlternatingItem" />
                                <RowStyle CssClass="cssDataGridItem" />
                                <HeaderStyle CssClass="cssDataGridHeader" ForeColor="#CCFFFF" />
                                <Columns>
                                    <asp:BoundField DataField="SEQNO" HeaderText="序号" />
                                    <asp:BoundField DataField="TroubleNo" HeaderText="编号" />
                                    <asp:BoundField DataField="ServiceClassName" HeaderText="服务类别" />
                                    <asp:BoundField DataField="ClassName" HeaderText="故障类别" />
                                    <asp:BoundField DataField="State" HeaderText="处理状态" />
                                    <asp:TemplateField HeaderText="服务标题">
                                        <ItemTemplate>
                                            <asp:Label ID="Label1" runat="server"><%# Watson.Core.Tools.FormatValue.InterceptString(Eval("ShortServiceName").ToString(), 10)%></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="CompanyName" HeaderText="请求者" />
                                    <asp:BoundField DataField="RequestTime" DataFormatString="{0:yyyy-MM-dd}" HeaderText="请求时间" />
                                    <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="../TroubleManage/TroubleShow.aspx?id={0}"
                                        HeaderText="查看" Text="查看" />
                                    <asp:HyperLinkField DataNavigateUrlFields="ID" DataNavigateUrlFormatString="../TroubleManage/TroubleAdd.aspx?id={0}"
                                        HeaderText="编辑" Text="编辑" />
                                </Columns>
                            </asp:GridView>
                            <webdiyer:AspNetPager ID="AspNetPager3" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb"
                                FirstPageText="首页" LastPageText="尾页" NextPageText="后页" PageSize="6" OnPageChanged="AspNetPager3_PageChanged"
                                PrevPageText="前页">
                            </webdiyer:AspNetPager>
                        </td>
                    </tr>
                    <tr id="tr_Report" runat="server" visible="false">
                        <td class="tdQueryCaption" colspan="2">
                            <div id="Div2" style="height: auto; display: inline;">
                                <div style="text-align:left;">
                                    请选择公司：<asp:DropDownList ID="ddl客户" runat="server" onchange="GetReport();">
                                    </asp:DropDownList></div>
                                <div style="float: left;">
                                    请选择年份：
                                    <select id="Select1" onchange="GetTroulbeofYear();">
                                        <option value="2009" selected="selected">2009</option>
                                        <option value="2010">2010</option>
                                        <option value="2011">2011</option>
                                        <option value="2012">2012</option>
                                        <option value="2013">2013</option>
                                        <option value="2014">2014</option>
                                        <option value="2015">2015</option>
                                        <option value="2016">2016</option>
                                        <option value="2017">2017</option>
                                        <option value="2018">2018</option>
                                        <option value="2019">2019</option>
                                        <option value="2020">2020</option>
                                    </select>
                                    <div id="troubleOfYear">
                                    </div>
                                </div>
                                <div id="line" style="float: left; background-image: url('../images/line01.gif');
                                    height: 292px; width: 5px;">
                                </div>
                                <div style="float: left;">
                                    请选择时间：<input id="txtQueryDate" type="text" onfocus="WdatePicker({isShowWeek:true,skin:'blue'})"
                                        onchange="" />
                                    <div id="troubleOfWeek">
                                    </div>
                                </div>
                            </div>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</body>
</html>

